#include "Logger.hpp"
#include <unistd.h>

int main()
{
    EnableFileLogStrategy();

    // RAII风格的日志构建和输出刷新的过程
    LOG(LogLevel::ERROR) << "hello world" << ", 3.14 " << 123;
    LOG(LogLevel::WARNING) << "hello world" << ", 3.14 " << 123;
    LOG(LogLevel::ERROR) << "hello world" << ", 3.14 " << 123;
    LOG(LogLevel::ERROR) << "hello world" << ", 3.14 " << 123;
    return 0;
}
